package com.geek.framework.study.config.servlet.servlet;

import javax.servlet.http.HttpServletRequest;


public class ServletRequestThreadLocal {

    private static ThreadLocal<HttpServletRequest> threadLocal = new ThreadLocal<>();

    public static void setThreadLocal(HttpServletRequest configSource) {
        threadLocal.set(configSource);
    }

    public static HttpServletRequest get() {
        return threadLocal.get();
    }

    public static void remove() {
        threadLocal.remove();
    }
}
